package com.imerir.robmob5;
import lejos.nxt.Button;
import lejos.nxt.Motor;
import lejos.robotics.navigation.DifferentialPilot;

public class Robot {
	
	public static void main(String... args){
		System.out.println("touche moi!");
		Button.waitForAnyPress();
		// A : moteur droit
		// B : moteur gauche
		DifferentialPilot myPilot = new DifferentialPilot(2.1f, 4.4f, Motor.A, Motor.B, false);
		myPilot.setRotateSpeed(30);  // cm per second
		myPilot.travel(50);         // cm
		myPilot.rotate(-90);        // degree clockwise
		myPilot.travel(-50,true);  //  move backward for 50 cm
	}
}
